//
//  NSXMLParser.h
//  iHealthEHR
//
//  Created by Joseph Ayo Akinyele on 3/21/10.
//  Copyright 2010 Johns Hopkins University. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GDataHealth.h"
#import "GDataXMLNode.h"

@interface XMLParser : NSObject {
	NSMutableDictionary *tag;
}

@property (nonatomic, retain) NSMutableDictionary *tag;
-(id) init;
-(void) parseDemographics:(NSString *) searchPath fromElement: (NSXMLElement *) element;
+(NSArray *) findChild: (NSXMLNode *) node withTag: (NSString *) name;
+(GDataContinuityOfCareRecord *) createCCRDocument:(NSXMLElement *) element;
+(BOOL) searchForTag: (NSXMLNode *) node withName: (NSString *) name orWith: (NSString *) othername;
+(BOOL) findAndReplace:(NSXMLElement *) origElement withName:(NSString *) name toThis:(NSXMLElement *) newElement;
+(NSXMLElement *) findAndReturnParent:(NSXMLElement *) element withName:(NSString *) name;
+(BOOL) AddChildToNode:(NSXMLElement *) origElement withName:(NSString *) name withThis:(NSXMLElement *) newElement;

@end
